import type { IRandomQuery, IBodyTest } from "./types/type.d.ts";

/** 测试接口1 */
export async function getHello(query: IRandomQuery, body: IBodyTest): Promise<IRandomQuery> {
    return axios.get(`/app/random`,body,{params:query})
}

/** 测试接口2 */
export async function getTest(): Promise<IBodyTest> {
    return axios.post(`/app/test-body`)
}

export async function getTest2(id: string): Promise<IBodyTest> {
    return axios.post(`/app/test-body2`)
}
